<template>
  <div>
    <!-- 标题 这是进行回退@click="$router.back()" -->
    <div class="list">
      <van-icon
        name="arrow-left"
        class="arrow_left"
        @click="$router.back()"
      />商品详情
    </div>
  </div>
</template>

<script>
import { getGoodsDetailAPI } from "@/api/user";
export default {
  name: "DetailView",
  data() {
    return {
      DetailList: [],
    };
  },
  created() {
    this.getGoodsDetail();
  },
  methods: {
    async getGoodsDetail() {
      const resp = await getGoodsDetailAPI();
      console.log(resp);
    },
  },
};
</script>

<style></style>
